package edu.predatorwars.client.visualization;


public class DataSet<T,V> {
	private T key;
	private V val;
	
	public DataSet(T Key, V Value) {
		key = Key;
		val = Value;
	}
	
	public DataSet() {
		
	}
	
	public void set (T Key, V Value) {
		key = Key;
		val = Value;
	}
	
	public void setKey(T Key) {
		key = Key;
	}
	
	public void setValue(V Value) {
		val = Value;
	}
	
	public T getKey() {
		return key;
	}
	
	public V getValue() {
		return val;
	}
	
	@Override
	public boolean equals(Object o) {
		if (o instanceof DataSet) {
			DataSet<T,V> ds = (DataSet<T, V>) o;
			if (this.key.equals(ds.key)) {
				return true;
			}
		}
		return false;
	}

}